﻿<%@ Page Language="C#" MasterPageFile="~/ControlPanel/CPanel.master" AutoEventWireup="True"
    Codebehind="CreateUser.aspx.cs" Inherits="ControlPanel_Member_CreateUser" Title="创建用户"
    StylesheetTheme="MainStyle" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <br />
    <h3 style="text-align: center">
        创建用户
    </h3>
    <br />
    <table width="700" border="0" align="center">
        <tr>
            <td align="center">
                <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8"
                    BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="12px" OnCreatedUser="CreateUserWizard1_CreatedUser"
                    OnNextButtonClick="CreateUserWizard1_NextButtonClick" OnCreateUserError="CreateUserWizard1_CreateUserError"
                    CancelDestinationPageUrl="~/Default.aspx" DisplayCancelButton="True" DisplaySideBar="True"
                    FinishDestinationPageUrl="~/MemberPortal/MemberCenter.aspx" OnFinishButtonClick="CreateUserWizard1_FinishButtonClick">
                    <WizardSteps>
                        <asp:WizardStep ID="SelectUserName" runat="server" Title="选择用户名">
                            <table border="0" style="font-size: 100%; font-family: Verdana" id="TABLE1" language="javascript">
                                <tr>                                                
                                    <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #5d7b9d;
                                        height: 17px;">
                                        选择一个用户名</td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="AccountNameLabel" runat="server" AssociatedControlID="SearchAccount"> 用户名:</asp:Label>
                                        <asp:TextBox ID="SearchAccount" runat="server"></asp:TextBox>
                                        <br />
                                        <asp:Label ID="SearchAccountMessage" runat="server" ForeColor="Red" />
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                            <ContentTemplate>
                                <table border="0" style="font-size: 100%; font-family: Verdana">
                                    <tr>
                                        <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #6b696b;
                                            height: 17px;">
                                            注册新帐户</td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">确认密码:</asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                                ErrorMessage="必须填写“确认密码”。" ToolTip="必须填写“确认密码”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">电子邮件:</asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                                ErrorMessage="必须填写“电子邮件”。" ToolTip="必须填写“电子邮件”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">安全提示问题:</asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="Question" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                                                ErrorMessage="必须填写“安全提示问题”。" ToolTip="必须填写“安全提示问题”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">安全答案:</asp:Label></td>
                                        <td>
                                            <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                                                ErrorMessage="必须填写“安全答案”。" ToolTip="必须填写“安全答案”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="height: 20px">
                                            <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                                ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="“密码”和“确认密码”必须匹配。"
                                                ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="color: red">
                                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                </table>
                                <asp:CheckBox ID="SubscribeCheckBox" runat="server" Checked="True" Text="订阅网站杂志" />
                                <asp:CheckBox ID="ShareInfoCheckBox" runat="server" Checked="True" Text="在合作网站共享我的信息" />
                            </ContentTemplate>
                        </asp:CreateUserWizardStep>
                        <asp:WizardStep ID="DetailInfo" runat="server" Title="填详细信息">
                            <table border="0" style="font-size: 100%; font-family: Verdana">
                                <tr>
                                    <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #6b696b;
                                        height: 17px;">
                                        请您继续完善详细信息</td>
                                </tr>
                                <tr>
                                    <td>
                                        已成功创建您的帐户。</td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="2">
                                        通讯地址
                                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" colspan="2">
                                        联系方式
                                        <asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                            <ContentTemplate>
                                <table border="0" style="font-size: 100%; font-family: Verdana">
                                    <tr>
                                        <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #6b696b;
                                            height: 17px;">
                                            完成</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            谢谢您对37Live的支持</td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2" style="width: 644px">
                                            <asp:Button ID="ContinueButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"
                                                BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue"
                                                Font-Names="Verdana" ForeColor="#284775" Text="继续" ValidationGroup="CreateUserWizard1" />
                                            <asp:Label ID="SubscribeLabel" runat="server" Text="You have elected to receive our monthly newsletter."></asp:Label>
                                            <asp:Label ID="ShareInfoLabel" runat="server" Text="You have elected to share your information with partner sites."></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:CompleteWizardStep>
                    </WizardSteps>
                    <SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em" VerticalAlign="Top" />
                    <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
                    <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"
                        BorderStyle="Solid" Font-Size="0.9em" />
                    <CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
                    <ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
                    <StepStyle BorderWidth="0px" />
                </asp:CreateUserWizard>
            </td>
        </tr>
    </table>
</asp:Content>
